import api from '@/fetch/api.js'
import {
  RECORD_USERINFO
} from './mutation-types.js'

export default {

  async getUserInfo ({
    commit,
    state
  }) {
    let res = await api.getUserInfo()
    commit(RECORD_USERINFO, res)
  }
}
